<%@ page contentType="text/html;charset=UTF-8" %> 
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>


<h3>Uczniowie</h3>

<form:form commandName="student">
<form:hidden path="userId" />
<table>

	<tr>
	<td colspan="2">
	
	<div style="color: green">${dodano}</div>

	
	</td>
	</tr>
	<tr>
	<td colspan="2">
	
	<form:errors path="userLogin" cssClass="error_box" />

	
	</td>
	</tr>
	<tr>
		<td><form:label path="userLogin">Login:</form:label></td>
		<td><form:input path="userLogin" /></td>
	</tr>
	<tr>
	<td colspan="2">
	<span style="font-style: italic;">Jeśli nie chcesz zmienić hasła - zostaw pola puste</span>
	<br />
	<form:errors path="userPassword" cssClass="error_box" />

	
	</td>
	</tr>
	<tr>
		<td><form:label path="userPassword">Hasło:</form:label></td>
		<td><form:password path="userPassword" /></td>
	</tr>
	<tr>
	<td colspan="2">
	
	<form:errors path="repeatPassword" cssClass="error_box" />

	
	</td>
	</tr>
	<tr>
		<td><form:label path="repeatPassword">Powtórz hasło:</form:label></td>
		<td><form:password path="repeatPassword" /></td>
	</tr>
	<tr>
	<td colspan="2" style="padding-top: 20px">
	
	<form:errors path="firstName" cssClass="error_box" />

	
	</td>
	</tr>
	<tr>
		<td><form:label path="firstName">Imię:</form:label></td>
		<td><form:input path="firstName" /></td>
	</tr>
	<tr>
	<td colspan="2">
	
	<form:errors path="lastName" cssClass="error_box" />

	
	</td>
	</tr>
	<tr>
		<td><form:label path="lastName">Nazwisko:</form:label></td>
		<td><form:input path="lastName" /></td>
	</tr>
	<tr>
	<td colspan="2">
	
	<form:errors path="classMember" cssClass="error_box" />

	
	</td>
	</tr>
	<tr>
		<td><form:label path="classMember">Klasa:</form:label></td>
		<td><form:select path="classMember">
				<form:option value="" label="Wybierz klasę" />
				<form:options items="${listOfClasses}" />
			</form:select>
		</td>
	</tr>
</table>
<input type="submit" value="Edytuj i wróć" />
</form:form><br /><br />